package com.chaihu.jpaDemo.common.searchBean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel
@NoArgsConstructor
@Data
public class Condition<T> {
	
	@ApiModelProperty("查询字段编码（数据库字段）")
    private String code;

	@ApiModelProperty("查询字段编码从此类中取")
    private T codeExamples;

	@ApiModelProperty("查询字段显示名称")
    private String name;
	
	@ApiModelProperty("查询字段值类型")
    private String type;
	@ApiModelProperty("查询方式 EQ:等于,GT:大于,GTE:大于等于,LT:小于,LTE:小于等于,NEQ:不等于 RLIKE:右模糊查询  LLIKE:左模糊查询 LIKE:全模糊查询 IS, IN, NIN, OR")
    private Operator operator;
	
	@ApiModelProperty("查询条件值")
    private Object value;

}